<script>
    function route(s) {
        l = s.length
        var hz = []
        wjm = []
        while (l-- != 0) {
            if (s[l] == '.')
                break
            hz.unshift(s[l])
        }
        alert(hz.join(''))
        while (l-- != 0) {
            if (s[l] == '\\')
                break
            wjm.unshift(s[l])
        }
        alert(wjm.join(''))
    }
    route('E:\\php\\abc.html')
</script>